package com.woniuxy01;

@FunctionalInterface
interface MyInterface01{
    int test(int x);

    static void xxx(){

    }

    default void yyy(){

    }
}

public class Test02 {
    public static void main(String[] args) {
        System.out.println(new MyInterface01() {

            @Override
            public int test(int x) {
                return x + 100;
            }

        }.test(100));

        System.out.println(((MyInterface01) x -> x + 500).test(100));
    }
}
